﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WordDowngrade
{
    public partial class newItemAdder : Form
    {
        private String item;
        public newItemAdder(String what)
        {
            InitializeComponent();
            label1.Text = "Add new " + what;
            item=null;
        }

        public String getSelectedItem()
        {
            return item;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            item = textBox1.Text;
            this.Close();
        }
    }
}
